package com.example.administrator.dc.model;

import com.example.administrator.dc.Service.ClubService;
import com.example.administrator.dc.Service.ListService;

import retrofit2.Call;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;

/**
 * Created by Administrator on 2017/9/20.
 */

public class ClubModel {
    private Retrofit retrofit;
    public ClubModel(){
        retrofit=new Retrofit.Builder()
                .addConverterFactory(GsonConverterFactory.create())
                .baseUrl(Contants.BASE_URL2)
                .build();

    }
    public Call Club(String id)
    {
        ClubService service=retrofit.create(ClubService.class);
        return service.getResult("2ul9sj8vlfoZ122e1s98048k2","1","Clubteacher","club",id);
    }

}
